package com.itheima.admin.exception;

import com.itheima.server.ErrorResult;

//自定义异常
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private ErrorResult errorResult;

    public BusinessException(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }

}